const api = {}
function requireAll(r) {
  return r.keys().map(key => {
    const k = key.replace('./', '').replace('.js', '')
    api[k] = r(key)
  })
}
requireAll(require.context('./', false, /[^index]\.js/))

export default api
